<?php
    require_once "config.php";
    $serv = new swoole_http_server("0.0.0.0",8800);
    $serv->set([
        'enable_static_handler'=>true,
        'document_root'=>'/data/htdocs/swlearn/view'
    ]);

    $serv->on(REQUEST_EVENT,function($request,$response){
        $response->end("<h1> Hello Swoole Http</h1>");
    });

    $serv->start();